package com.designpattern.adapter;

import lombok.Data;

@Data
public class Adapter extends AppleUSB {

    private String name = "苹果适配器";

    private String data;

    private AppleComputer appleComputer = new AppleComputer();

    public void daTou(AndroidUSBCable androidUSBCable) {
        System.out.println("安卓数据链接适配器");
        data = androidUSBCable.getData();
        appleComputer.daTou(this);
    }
}
